package com.hl.sfzy.mapper;

import com.hl.sfzy.entity.CourseTalk;
import com.hl.sfzy.entity.CourseType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Mystic
* @description 针对表【course_talk(课程交流表)】的数据库操作Mapper
* @createDate 2025-03-11 09:45:57
* @Entity com.hl.sfzy.entity.CourseTalk
*/
@Mapper
public interface CourseTalkMapper {

    //根据id删除
    int deleteByPrimaryKey(Long id);
    //新增
    int insert(CourseTalk record);

    //根据id查询
    CourseTalk selectByPrimaryKey(Long id);

    //修改
    int updateByPrimaryKey(CourseTalk courseTalk);
    //批量删除
    int deleteBatch(List<Long> ids);

    //查询所有
    List<CourseTalk> select(int pageNum, int pageSize);
    //分页查询
    List<CourseTalk> selectByPage(@Param("pageNum") int pageNum,
                                  @Param("pageSize") int pageSize,
                                  @Param("courseTalk") CourseTalk courseTalk);

}
